import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;


public class Test {
	private static Lock productLock = new ReentrantLock();
	private static Condition consumed = productLock.newCondition();
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			productLock.lock();
			//consumed.await();
			consumed.await(1000, TimeUnit.MILLISECONDS);
		} catch (InterruptedException e) {
		} finally {
			productLock.unlock();
		}
		System.out.println("ssssssssssss");
	}

}
